package com.bluetoothsms.common;

public class MessageSMS extends BluetoothMessage {

	public MessageSMS(Sms sms) {
		super(BtMessageType.SMS, new String[] { sms.getText(),
				String.valueOf(sms.getDate().getTime()),
				String.valueOf(sms.getType().ordinal()),
				String.valueOf(sms.getThreadId()), sms.getNumber(),
				String.valueOf(sms.getStatus().ordinal()) });
	}

	public MessageSMS(byte[] data, int length) {
		super(BtMessageType.SMS, data, length);
	}

	public Sms getSms() {
		return new Sms(mData, 0);
	}
}
